﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ihongma.Web.Plugin.Feedback.feedback" ValidateRequest="false" %>
<%@ Import namespace="System.Collections.Generic" %>
<%@ Import namespace="System.Text" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="ihongma.Common" %>

<script runat="server">
override protected void OnInit(EventArgs e)
{

	/* 
		This page was created by ihongma Template Engine at 2014/4/18 16:52:12.
		本页面代码由ihongma模板引擎生成于 2014/4/18 16:52:12. 
	*/

	base.OnInit(e);
	StringBuilder templateBuilder = new StringBuilder(220000);
	templateBuilder.Append("<!DOCTYPE html>\r\n<html>\r\n<head>\r\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n    <meta name=\"viewport\" content=\"width=device-width; initial-scale=1; maximum-scale=1\" />\r\n    <title>留言反馈 - ");
	templateBuilder.Append(Utils.ObjectToStr(config.webname));
	templateBuilder.Append("</title>\r\n    <link rel=\"stylesheet\" href=\"");
	templateBuilder.Append(Utils.ObjectToStr(config.webpath));
	templateBuilder.Append("css/validate.css\" />\r\n    <link type=\"text/css\" rel=\"stylesheet\" href=\"");
	templateBuilder.Append(Utils.ObjectToStr(config.webpath));
	templateBuilder.Append("css/pagination.css\" />\r\n    <link rel=\"stylesheet\" href=\"");
	templateBuilder.Append("/templates/mobile");
	templateBuilder.Append("/css/style.css\" />\r\n    <script type=\"text/javascript\" src=\"");
	templateBuilder.Append(Utils.ObjectToStr(config.webpath));
	templateBuilder.Append("scripts/jquery/jquery-1.10.2.min.js\"></");
	templateBuilder.Append("script>\r\n    <script type=\"text/javascript\" src=\"");
	templateBuilder.Append(Utils.ObjectToStr(config.webpath));
	templateBuilder.Append("scripts/jquery/jquery.form.min.js\"></");
	templateBuilder.Append("script>\r\n    <script type=\"text/javascript\" src=\"");
	templateBuilder.Append(Utils.ObjectToStr(config.webpath));
	templateBuilder.Append("scripts/jquery/Validform_v5.3.2_min.js\"></");
	templateBuilder.Append("script>\r\n    <script type=\"text/javascript\" src=\"");
	templateBuilder.Append(Utils.ObjectToStr(config.webpath));
	templateBuilder.Append("scripts/lhgdialog/lhgdialog.js?skin=idialog\"></");
	templateBuilder.Append("script>\r\n    <script type=\"text/javascript\" src=\"");
	templateBuilder.Append("/templates/mobile");
	templateBuilder.Append("/js/base.js\"></");
	templateBuilder.Append("script>\r\n    <script src=\"");
	templateBuilder.Append("/templates/mobile");
	templateBuilder.Append("/js/jquery.flexslider.js\"></");
	templateBuilder.Append("script>\r\n    <script src=\"");
	templateBuilder.Append("/templates/mobile");
	templateBuilder.Append("/js/effects.js\"></");
	templateBuilder.Append("script>\r\n    <script src=\"");
	templateBuilder.Append("/templates/mobile");
	templateBuilder.Append("/js/jquery.tabify.js\"></");
	templateBuilder.Append("script>\r\n    <script src=\"");
	templateBuilder.Append("/templates/mobile");
	templateBuilder.Append("/js/load.js\"></");
	templateBuilder.Append("script>\r\n    <script type=\"text/javascript\">\r\n        $(function () {\r\n            //初始化发表评论表单\r\n            AjaxInitForm('feedback_form', 'btnSubmit', 1);\r\n        });\r\n    </");
	templateBuilder.Append("script>\r\n</head>\r\n<body id=\"page\">\r\n    <div id=\"pagecontainer\">\r\n        ");



	templateBuilder.Append("\r\n        <div class=\"content\">\r\n            ");



	templateBuilder.Append("\r\n            <div class=\"pagediv\">\r\n                <!-- 内容详细 开始-->\r\n                <h1>\r\n                    留言反馈</h1>\r\n                <!--留言列表-->\r\n                <div class=\"comment_box\">\r\n                    <ol class=\"comment_list\">\r\n                        ");
	DataTable plist = new DTcms.Web.Plugin.Feedback.feedback().get_feedback_list(10, page, "", out totalcount);

	string pagelist = get_page_link(10, page, totalcount, "feedback", "__id__");

	int list__loop__id=0;
	foreach(DataRow list in plist.Rows)
	{
		list__loop__id++;


	templateBuilder.Append("\r\n                        <li>\r\n                            <div class=\"floor\">\r\n                                #");
	templateBuilder.Append((list__loop__id+10*(page-1)).ToString());

	templateBuilder.Append("</div>\r\n                            <div class=\"inner\" style=\"margin-left: 0;\">\r\n                                <p>\r\n                                    " + Utils.ObjectToStr(list["content"]) + "</p>\r\n                                <div class=\"meta\">\r\n                                    <span class=\"blue\">" + Utils.ObjectToStr(list["user_name"]) + "</span> <span class=\"time\">" + Utils.ObjectToStr(list["add_time"]) + "</span>\r\n                                </div>\r\n                            </div>\r\n                            ");
	if (Utils.ObjectToStr(list["reply_content"])!="")
	{

	templateBuilder.Append("\r\n                            <div class=\"answer\" style=\"margin-left: 0;\">\r\n                                <div class=\"meta\">\r\n                                    <span class=\"right time\">" + Utils.ObjectToStr(list["reply_time"]) + "</span> <span class=\"blue\">管理员回复：</span>\r\n                                </div>\r\n                                <p>\r\n                                    " + Utils.ObjectToStr(list["reply_content"]) + "</p>\r\n                            </div>\r\n                            ");
	}	//end for if

	templateBuilder.Append("\r\n                        </li>\r\n                        ");
	}	//end for if

	templateBuilder.Append("\r\n                    </ol>\r\n                </div>\r\n                <div class=\"line10\">\r\n                </div>\r\n                <div class=\"flickr\">\r\n                    ");
	templateBuilder.Append(Utils.ObjectToStr(pagelist));
	templateBuilder.Append("</div>\r\n                <!--放置页码列表-->\r\n                <!--/留言列表-->\r\n                <div class=\"line10\">\r\n                </div>\r\n                <h1>\r\n                    发表留言</h1>\r\n                <div class=\"line10\">\r\n                </div>\r\n                <form id=\"feedback_form\" name=\"feedback_form\" url=\"");
	templateBuilder.Append(Utils.ObjectToStr(config.webpath));
	templateBuilder.Append("plugins/feedback/ajax.ashx?action=add\">\r\n                <div class=\"form_box\">\r\n                    <dl>\r\n                        <dt>用户昵称：</dt>\r\n                        <dd>\r\n                            <input id=\"txtUserName\" name=\"txtUserName\" type=\"text\" class=\"input txt\" datatype=\"*\"\r\n                                sucmsg=\" \" /></dd>\r\n                    </dl>\r\n                    <dl>\r\n                        <dt>联系电话：</dt>\r\n                        <dd>\r\n                            <input id=\"txtUserTel\" name=\"txtUserTel\" type=\"text\" class=\"input txt\" datatype=\"*0-20\"\r\n                                sucmsg=\" \" /></dd>\r\n                    </dl>\r\n                    <dl>\r\n                        <dt>在线QQ：</dt>\r\n                        <dd>\r\n                            <input id=\"txtUserQQ\" name=\"txtUserQQ\" type=\"text\" class=\"input txt\" datatype=\"*0-20\"\r\n                                sucmsg=\" \" /></dd>\r\n                    </dl>\r\n                    <dl>\r\n                        <dt>电子邮箱：</dt>\r\n                        <dd>\r\n                            <input id=\"txtUserEmail\" name=\"txtUserEmail\" type=\"text\" class=\"input txt\" /></dd>\r\n                    </dl>\r\n                    <dl>\r\n                        <dt>留言标题：</dt>\r\n                        <dd>\r\n                            <input id=\"txtTitle\" name=\"txtTitle\" type=\"text\" class=\"input txt\" datatype=\"*2-100\"\r\n                                sucmsg=\" \" /></dd>\r\n                    </dl>\r\n                    <dl>\r\n                        <dt>留言内容：</dt>\r\n                        <dd>\r\n                            <textarea id=\"txtContent\" name=\"txtContent\" class=\"input txt\" datatype=\"*\" sucmsg=\" \"\r\n                                style=\"width: 350px; height: 80px;\"></textarea></dd>\r\n                    </dl>\r\n                    <dl>\r\n                        <dt>验证码：</dt>\r\n                        <dd>\r\n                            <input id=\"txtCode\" name=\"txtCode\" type=\"text\" class=\"input small\" datatype=\"*\" sucmsg=\" \" />\r\n                            <a href=\"javascript:;\" onclick=\"ToggleCode(this, '");
	templateBuilder.Append(Utils.ObjectToStr(config.webpath));
	templateBuilder.Append("tools/verify_code.ashx');return false;\">\r\n                                <img src=\"");
	templateBuilder.Append(Utils.ObjectToStr(config.webpath));
	templateBuilder.Append("tools/verify_code.ashx\" width=\"80\" height=\"22\" align=\"absmiddle\" />\r\n                                看不清楚？</a> <span class=\"Validform_checktip\"></span>\r\n                        </dd>\r\n                    </dl>\r\n                    <dl>\r\n                        <dt></dt>\r\n                        <dd>\r\n                            <input name=\"btnSubmit\" type=\"submit\" value=\"发表留言\" class=\"btn_submit\" />\r\n                        </dd>\r\n                    </dl>\r\n                </div>\r\n                <div class=\"clear\">\r\n                </div>\r\n                </form>\r\n            </div>\r\n            ");



	templateBuilder.Append("\r\n        </div>\r\n        ");



	templateBuilder.Append("\r\n    </div>\r\n</body>\r\n</html>\r\n");
	Response.Write(templateBuilder.ToString());
}
</script>
